package com.ithema.notebook.data;

import javax.swing.table.DefaultTableModel;
import java.util.LinkedList;
import java.util.List;

/**
 * Package: com.ithema.notebook.data
 * Description：
 *
 * @author: huangjian
 * Date:  2020/10/18 16:21
 * Modified By:
 */
public class DataCenter {
    public static String SELECT_TEXT;
    public static String FILE_NAME;
    public static List<NoteData> NOTE_LIST=new LinkedList<>();
    public static String[] TABLE_HEADER={"标题","备注","文件名","代码段"};
    public static DefaultTableModel DEFAULT_TABLE_MODEL=new DefaultTableModel(null, TABLE_HEADER){
        @Override
        public boolean isCellEditable(int row, int column)
        {
            return false;
        }
    };
    public static void reset(){
        NOTE_LIST.clear();
        DEFAULT_TABLE_MODEL.setDataVector(null,TABLE_HEADER);
    }
}
